Obviously, we can assume that $ABCD$ is oriented counterclockwise as in the figure. (Otherwise reflect through some line.)
For any point $M$ we write $\rho_M$ for the counterclockwise $90^{\circ}$ rotation about $M$, and $\sigma_M$ for the symmetry centred at $M$.
Lemma Given two points $M$ and $N$, we have $\rho_N \circ \rho_M = \sigma_O$ for some point $O$. Moreover $\rho_O(N) = M$.
Proof It is well-known that a composite of two rotations is a rotation whose angle is the sum of the oriented angles of the individual rotations (or a translation if this sum is $0$.) Thus there is a point $O$ for which $\rho_N \circ \rho_M = \sigma_O$.
Now write $M' = \sigma_O(M)$ and $N' = \sigma_O(N)$. $MNM'N'$ is a parallelogram with centre $O$. But since
$$\rho_N(M) = \rho_N \circ \rho_M(M) = \sigma_O(M) = M',$$
the parallelogram $MNM'N'$ is in fact a clockwise-oriented square. The lemma follows immediately from this.
Proof of the theorem
Let $O$ be the midpoint of the segment $AC$.
We have $\rho_H \circ \rho_E = \sigma_{O'}$ for some point $O'$ as in the lemma. But since $\sigma_{O'}(A) = \rho_H \circ \rho_E (A) = C$, the point $O'$ must in fact be $O$. Thus $\rho_O(H) = E$.
Considering $\rho_G \circ \rho_F$ and exchanging the roles of $A$ and $C$, we similarly prove $\rho_O(G) = F$.
Putting these facts together, we see that $\rho_O$ transforms the segment $HG$ into $EF$. This proves what we want.