Hello.If it was me, I would pull out the glass, paint the car, install the new headliner and then reinstall the glass.You don't really want to pull out the glass on a freshly painted car if you don't have to, and with no glass and no headliner you can address any rust issues you might have on that lip that the glass goes up against.It can look great with the glass in, but when you pull it out and actually get to look at that area it's often in less than stellar condition.But, that's just how I would do it.Others may have other ideas.Good luck.
