How to check if a vehicle window is rolled down

I seem to find a native that checks the state of the window in a vehicle. What would be the alternative for that ?