Otherwise, based on all the other logic described, the decision to roll the windows up probably takes into account if there's an obstruction (just like auto-up windows do).
Edited to add:
"partial ejection" are the magic google words. Here's an example:
"It was found that, in standard impact tests on high containment barriers, partial ejection of the head through the side windows occurs systematically"
I was the first person on the scene of a rollover where a woman was pinned underneath the car (fortunately only suffering broken bones) because she was partially ejected through the open window.
Note: hand signals are still legal, still tested on driver exams, and (as I saw a few weeks ago) still actually used for real.
E.g. my six year old is in one of these https://www.britax.com.au/car-seats/britax-safe-n-sound-enco...