In triangle $ABC$ with centroid $G$ and circumcircle $\omega$, line $\overline{AG}$ intersects $BC$ at $D$ and $\omega$ at $P$. Given that $GD = DP = 3$, and $GC = 4$, find $AB^2$.

Let's think step by step and output the final answer within \boxed{}.
user