Research shows there are benefits to letting your mind wander.