This expression, likely alluding for the idea of pie as anything sweet and attractive, and sky as while in the air, further than a single’s reach, was popularized in a very Earth War I song normally attributed to Joe Hill (1927): Refraction may be the bending of sunshine rays https://www.youtube.com/watch?v=snr3is5MTiU