In the image, $A,B$ and $E$ are tangency points;
$H,E,M$ and $G$ are collinear;
$O$ is the center of the circle whose diameter is $AB$
$OM \perp HG$
I did solve this problem with the following similarities $\triangle AHE \sim \triangle OME \sim \triangle BGE $ and some calculations, but I wonder if there is a simpler (more synthetic) way to do it.
It is fairly easy to see that $OM = \frac{BG-AH}2$



Let draw line CD through O perpendicular to MO. Triangles COB and DOA are right and equal by angle and hypotenuse. Then MG = OC = OD = MH.