Star Wars-style desert moisture farming could be around the corner

Could the principle of drawing moisture from the air to provide drinking water work in the real world?