From the manual:
Automatic adjusting function
CAUTION
When the battery cable is removed from the battery terminal, do not close either of the front doors. The automatic window adjusting function will not work and the side roof panel may be damaged.
The power window has an automatic adjusting function. When the door is being opened, the window is automatically lowered slightly to avoid contact between the window and the side roof panel. When the door is closed, the window is automatically raised slightly. While the automatic adjusting function does not work, the window will be controlled as follows:
. When the door is opened, the window
lowers for approximately 2 seconds.
. While the door is open, the window cannot
be raised.