The car already has a rain sensor so it can close the windows automatically. I do believe some VWs already do/did that.

My car has that to activate the wipers. To say it works reliably is to lie.