Try this for non closing window.
From Tesla manual:
Calibrating Windows
In the unlikely event that a window behaves unexpectedly (touches the bright molding, fails to open or close properly, goes down more than normal when the door opens, etc.), you can calibrate it to potentially fix the issue...