Putting the tank in the window could be drastically altering your temperatures. Is the tank protected from direct sunlight? Have you checked and double checked your temps. Your snake is going to explore and part of that is going to include pushing on their enclosure. As long as its not hurting itself in the process it might not be a big deal.