I say this with the utmost humility, RTFM...
Page 15:
https://www.tesla.com/sites/default/files/model_3_owners_manual_north_america_en.pdf
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.
To calibrate a window:
1. Close the door with the affected window.
2. Sit in the driver's seat and close the driver
door.
3. Use the driver window switch to raise the
affected window until it stalls.
4. Use the driver window switch to lower the
affected window until it stalls.
5. Use the driver window switch to raise the
affected window until it stalls.
The window should now be calibrated. If the issue continues after attempting the calibration procedure a couple times, contact Tesla.