To have any desire, idea, or plan that is unlikely to be realized; to imagine visionary projects or schemes; to have an idle fancy or a pipe dream; to daydream.
stare into space
verb
To stare in an absent-minded or unfocused way.
How often have the words build castles in the air and stare into space occurred in a corpus of books? (source: Google Ngram Viewer )