Well, considering the auto wipers close when sensing rain, and the button can be uses to close windows remotely, id imagine a relay controlled by the rain senser with a timer to close the windows could be done.
However, if your not in the car the windows should be closed already i guess, and also if your driving, i doubt that would be a safe function to have switched on.