It is an expression to qualify someone unrealistic, who lives in his fantasies, who "has his head away from the earth". Which is not always considered bad, but also a condition for "creative thinking". See nefelibata .
Having your head in the clouds : Expresses that someone is distracted, engrossed, disoriented, clueless, embossed, enchanted, who does not know what is going on around them.