If a butterfly suddenly decide to visit your home, it will probably end up on a window. Then it's a little tricky to get it outside without removing its magic flying dust. First of all I think you should take a picture of the beauty.
A clear glass and a piece of paper should do the job. Don't keep it there to long though, cause the air is running out!