Had a leaky sunroof on mine (manual type) so this may be useful to check first, found the washers had perished were the brackets attach to the glass, on the top side, pulled what was left of the washers out, ran a bead of mastic (gutter sealant) around removed excess and sorted it...:D
hth