It sounds like the sunroof drain is blocked, common problem.
Look around the sides of the sunroof and at the inside of the door hinge area. There is a drain that is probably blocked. Take a wire hanger and gently run it up and down - that should clear it. Follow up with some water at the top to flush it out.
VW TDI forum, Audi, Porsche, and Chevy Cruze Diesel forum
A forum community dedicated to Audi, Volkswagen, Porsche, and all turbo diesel owners and enthusiasts. Come join the discussion about performance, modifications, troubleshooting, TDI, maintenance, and more!