I had an unexpected visitor in the potting shed yesterday. I came home to find a Robin frantically flapping his wings and throwing himself against the window, trying to get outside. A window was open several inches and when the wind blew the loose screen off he made his way inside, but couldn't get back out.
I spent about an hour trying to get him to head towards the door I'd left open for him. After many attempts he finally made it out the way he came in.