This Guy Used Polyurethane Sealant on his Windshield/Rear Window Gaskets

Some silicone sealants are acidic and will cause rust issues over time. I wouldn't use silicone on any part of the body of my car.