For refernce: In the figure, $P$ and $Q$ are points of tangency. Calculate $PQ$ if the side of square $ABCD$ measures $a$.
$AQ = AD (tangents)\\\therefore AQ = AD = a\\similarly; AP = AQ = a\\ \therefore \triangle APD: \triangle AQG: \triangle APQ \rightarrow isosceles\\ EG =GH= \frac{a}{2}\\ \angle AGD = 45^o \therefore AG = \frac{a\sqrt2}{2}$
any hint where to use PQ...

Please note $EQ \perp AQ, ED = EQ, AD = AQ$. So, $\triangle DAE \sim \triangle QAE $ and $\angle DAE = \angle QAE = \alpha$ (say).
Then, $\angle PAI = 2 \alpha - 45^\circ$
$PQ = 2 PI = 2 AP \sin (2 \alpha - 45^\circ)$
$PQ = \sqrt2 ~a (\sin 2\alpha - \cos 2\alpha) \tag1$
Now note in $\triangle ADE$ that $\cos \alpha = \frac{2}{\sqrt5}, \sin \alpha = \frac{1}{\sqrt5}$
$\implies \sin 2\alpha = \frac{4}{5}, \cos 2\alpha = \frac{3}{5}$
Plugging into $(1)$, $PQ = \frac{a \sqrt2}{5}$