Automatic garage doors sense if the motor is straining against an obstacle and will halt and reopen the door in that case. Couldn't Tesla's power windows sense if they're trapping a limb or other object in the window and reverse?
I personally would love a "close all windows upon sensing rain" feature, although I believe running the computer vision A.I. continuously to detect rainfall while parked would place too great a power demand on the 12V battery.
Even just being able to roll up all the windows via the mobile app would be a blessing. Also, they should all roll up automatically when remotely activating climate control.