It is glued in using urethane adhesive from the factory. Over time, it can tend to lose it's adhesion with the paint it is stuck to, and start to leak or rattle. I would take it to a glass shop and have them cut it out and reseal it to the truck(car?).