A Rainy/Snowy Day Helper

I have an idea for a new feature for a vehicle. The idea is about a senor that will know the window(s) are (is) down and senses it is raining or snowing, based on moisture on the car body, so it will roll it up for you, as to going out in the rain/snow and get wet in the process to roll it up. This senor should remain off when the vehicle is running, so it will not go up when in a drive through and it is raining for example. Ths came to me in a dream and I thought I would share it. I have an idea of logic how this can work and I do have a Associates in Automotive Technology.