There's not a lot to do. There's the seal from the roof to the sunroof frame which can be sealed with Tigerseal or similar, and there's the seal from the frame to the glass which isn't particularly expensive. That's it.
If it leaked a lot before the previous owner sealed it, the water might have...