It's been a few years since I dealt with Euclidean Geometry and I now fell onto this problem: We are given the square $ABCD$, and point $F$ on $AB$. We construct a right angle $FEH$ for which $EH = EF$. We are looking for the locus of point $H$, as $F$ moves between $A$ and $B$. I did it with Geogebra and it seems that the locus is line (or, better, a segment) perpendicular to $AB$ but I can't figure out anything more than this.
Just to clarify, the reason I am trying to figure out this locus, is because I want to construct a square, with one side $EF$ and the opposite side passing from $C$. So the perpendicular at $EH$ at point $H$ (which moves on this blue line), must pass from $C$.
Any help is most welcome.
EDIT:
To clarify: Point $E$ on $AD$ is fixed. Point $F$ is not fixed; it moves on $AB$ and angle $FEH$ is always right; therefore point $H$ is moving, as $F$ moves between $A$ and $B$.

If $EA=a$ and $\angle EFA=\theta$, then $EF=EH=a\csc\theta$.
Therefore the horizontal displacement of $H$ from the line $AD$ is $a\csc \theta*\sin\theta=a$.
Therefore $H$ moves on a vertical straight line at the same distance from $AD$ as $E$ is from $A$.