Solution:
Answer: 2014024
Let line AD meet ω again at H. Since AF and AE are tangents to ω and ADH is a secant, we see that DEHF is a harmonic quadrilateral. This implies that the pole of AD with respect to ω lies on EF. Since ℓ⊥AD, the pole of AD lies on ℓ. It follows that the pole of AD is G.

Thus, G must lie on the tangent to ω at D, so C,D,B,G are collinear. Furthermore, since the pencil of lines (AE,AF;AD,AG) is harmonic, by intersecting it with the line BC, we see that (C,B;D,G) is harmonic as well. This means that
DCBD⋅GBCG=−1
(where the lengths are directed.) The semiperimeter of ABC is s=21(2007+2008+2009)=3012. So BD=s−2009=1003 and CD=s−2008=1004. Let x=DG, then the above equation gives
10041003⋅x−1003x+1004=1
Solving gives x=2014024.