Getting the same answer as CPhill's but without trig.
By AA, all four triangles, the three smaller one and the full one are all similar.
Using CPhill's diagram, triangle(ABC) ~ triangle(FGC) ~ triangle(AFD).
Since triangle(ABC) is a right triangle, AB = sqrt(13).
Since the ratio of AC : CB : BA = 2 : 3 : sqrt(13),
FC : CG : GF = 2x : 3x : sqrt(13)·x (for some value of x, that we can find later)
and DA : DF : FA = 2y : 3y : sqrt(13)·y (for some value of , that we can find later)
Since DFGE is a square: FG = DF ---> sqrt(13)·x = 3y
---> y = (sqrt(13) / 3) · x
This makes AF = sqrt(13) · sqrt(13) / 3 · x = ( 13/3 )·x
AC = AF + FC ---> 2 = (13/3)x + 2x ---> 6 = 13x + 6x ---> 6 = 19x ---> x = 6/19
Since FG = sqrt(13)·x ---> FG = sqrt(13)·(6/9) = 6·sqrt(13)/19
Same answer as CPhill's, so I feel confident!