I have had two G5's with sunroofs.
Both have had the sunroof drain tubes come loose from the sunroof.
Remove the trim needed to drop the headliner down a bit in that area, reach in and reattach the hose.
For added assurance that the tube stays in place I add a hose clamp.
Sun roof drains are located in the right front and left rear corner of the sunroof.