Yup, had one or both of my dogs do that after banging their heads in the glass or net one too many times...
Unfortunately, my father didn't record his (now put to sleep) cat when he made a critter door to the patio door for him:
He showed his cat how the swivel door opened, but the cat was insisting on standing in front of the glass and kept asking for the door, scared of the "wall". My dad got tired and just
threw the car
through the swivel door. The cat then looked back in amazement, completely bewildered that he was now on the other side of the door. One more demonstration later, he never asked for the door again. The place went from a "5 minute" alarm to complete quiet all the time... except for numnum time.
Speaking of numnum: