Your issue is the door latch. The door latch tells the window if the door is shut or open (e.g. keep the window down until the door is shut). The door latches are pretty expensive. Some have fixed them by re-flowing the solder. Although I haven't tried this, it looks like you can rebuild yours with the less expensive VW part too -
https://grassrootsmotorsports.com/forum/tech-tips/porsche-986-996-door-latch-replacement-with-vw-part/151397/page1/