3M drip check sealer. Any automotive paint store should have it. It's the only product that I've found that will work right. I've tried some of those high dollar two part seam sealers and they end up doing strange things, from shrinking to swelling and cracking. Sometimes, much later after the paint is complete.
Use 3M 3/4" green masking tape and tape off the roof along the drip rail trough and along the drip rail edge where you want the edge of the sealer to stop, Apply sealer and carefully pull tape before the sealer has a chance to start drying for a clean factory looking edge. If you wait for it to dry, it leaves an unsealed edge.I would let it dry for a couple of days no matter what the tube instructions say before applying topcoats.