When the opening is correctly located facing the base of the windshield, the rain, being somewhat heavier/denser than air, simply doesn't go in-at least when you're moving.
The good ones also have the top edge a bit longer than the bottom-like a roof overhang.