This is to facilitate opening and closing, not to protect the weatherstripping. In modern cars (last decade at least) the cabin is air tight enough that closing the door fast/hard enough to get both "halves" of the double latch secure meets air pressure resistance that makes this "hard". By lowering the window a smidge, the force required from inside to pull the door shut is reduced.
This feature is fully achievable with the same sensor that detects whether the [mechanically controlled] door is open or not, and whether you are pulling on the interior latch.
For sedans (cars where the window glass is fully framed in the door), the design of the weather stripping doesn't require this window behavior. You can probably visualize why that is. In a coupe, the window glass has to seal quite tightly against the roofline, with a very limited profile and no supporting structure.
That may be the stated reason, but like retracting door handles, it's an aesthetic decision.
Different cars have different air-tightness of the cabin, different interior volume, different door pull designs, and different door weights. It's these factors combined that dictate whether such window shenanigans are useful or not. Not just the inherent limitations of sealing the glass against the roofline.
The major point of my response was that Tesla's claim (per the post, I didn't verify) that this is needed or useful to somehow improve the longevity of the weatherstripping, is nonsense. However, there are other valid reasons for this behavior.
While I remembered the physical lever existed, I forgot where it actually was until this post so I would likely be spending that time to figure it out again and probably just panic and break the window like the person in the original article did.