Is there a triangle $ABC$ having following properties? :
$ABC$ is not right angled
$d(A,B)\ne d(A,C)$
If one draws the largest possible square such that one of the side of square is a subset of $AB$ and rest two vertexes are on sides $AC$ and $BC$ and similarly if one draws the largest possible square such that one of the side of square is a subset of $AC$ and rest two vertexes are on sides $AB$ and $BC$, the areas of squares are the same.

As Irvan has remarked in his comment, the triangle $\triangle$ has to be acute in order to make both envisaged squares possible.
Consider the square standing on the side $b=AC$, and let $h_b$ be the height from $B$ to $b$. The side length $s$ of the square has to satisfy $${s\over h_b-s}={b\over h_b}\ ,$$ from which we obtain $$s={b\>h_b\over b+h_b}\ .$$ Similarly, the square standing on the side $c=AB$ has side length $$s'={c\>h_c\over c+h_c}\ .$$ Now a priori $$b\>h_b=c\>h_c=2{\rm area}(\triangle)\ .\tag{1}$$ Therefore the condition $s'=s$ enforces $$c+h_c=b+h_b\quad (=:\ell)\ .\tag{2}$$ Now comes the tricky part: From $(1)$ and $(2)$ it follows by Vieta's theorem that both two-element sets $\{b, h_b\}$ and $\{c, h_c\}$ solve the "artificial" quadratic equation $$p^2- \ell\> p+2{\rm area}(\triangle)=0$$ in the auxiliary variable $p$. This implies $\{b, h_b\}=\{c, h_c\}$ (as sets). Now $b\ne c$ by assumption; furthermore $h_b<c$, since $\triangle$ is acute. This shows that a configuration of the envisaged kind is impossible.