Occasionally things go wrong and need resetting and owners of Teslas are familiar with the need to reset the computers. However even that can not cure all problems.
One such problem which can be often easily fixed by the owner is the window not being set correctly. Car doors with frame-less windows typically drop the window slightly when opening and then once the door is closed, the window closes itself. These windows are found on a number of Teslas. It does this for a couple of reasons but the main reason is the window drop ensure the window is clear of the body work when opening, and secondly the seal it makes with the rubber seal is better than simply closing onto the rubber seal.
The problem comes when the position of the window is lost and the car thinks the window is closed when its not.
The fix is really easy.
This is all you should need to do to reset the window. If the issue persists then sadly its a case of raising a ticket with Tesla.