A vivid imagination can keep you company when you feel alone. It can also transport you from undesirable surroundings. This is something introverts know very well.
There’s nothing wrong with escapes from reality, as long as they aren’t causing you or someone else problems in reality. If things are getting worse because you’ve been absent-minded too much, it’s time to re-focus.