If your considering painting your truck but don't want to pull the glass , You can lift the glass seal and insert a thin cord under the edge of the seal to lift it up enough to mask off that will give you a clean gasket edge against your new paint because nothing looks worse on a fresh paint job as paint on the gasket edge .
I just set this up for pics the truck is getting stripped today.