To seal the header rail on my hard top, I used a length of 3 mm rubber extrusion. Works perfectly as it stops the water creeping up & over the screen. I also lubed the header rubber with silicone grease. Both suggested by a member TM.

4/4 Ivory 4.1:1 axle, Jaguar XE R-Sport.