An officer could order you to roll your window back up.
As far as getting a ticket, I can not give someone permission to operate an illegal vehicle. Most officers are not so hard core to tow every car with a defect, but they legally could.
If I knew you had been previously cited and refused to remove it, I could do two things, either tow the vehicle, or make your next ticket a mandatory appearance. The judge could then order it removed, and failure to would be contempt.
17 years law enforcement