I have a similar problem with a raccoon that likes to scratch on my bedroom window when I am trying to sleep (he stands on the roof)I am to check in the attic to see if he is getting in there also. I am currently searching for ways to get rid of him/her.