This expression, probably alluding towards the notion of pie as anything sweet and fascinating, and sky as during the air, beyond one’s arrive at, was popularized in a Globe War I tune frequently attributed to Joe Hill (1927): Hallucination – A vivid perception during the absence of external stimulus https://www.youtube.com/watch?v=snr3is5MTiU