Window-sized device taps the air for safe drinking water