zone out

to be deeply absorbed by thoughts because you are tired or bored

Examples

He used to sit in the room with a cup of coffee and zone out for a while.