Wandering inmate252 describes a state where someone is in immersed within dreams and mental breakaway. Such experience can occur as a result of ennui, lack of interest in their present circumstances, or a craving to psychologically transport themselves into another realm.
Imagining could range from light to a deep level, and it permits the person to venture into a world of one's personal creation, unrestricted by limitations.