It’s not trying to get into the house, it’s attacking it’s reflection in the window – he thinks he has a competitor. It the time of year when testes are swelling (no, really, they shrivel up in the off season, that’s too much weight to carry around all year), territories are being established and defended, and mates are being sought.
I used to have the same stupid cardinal attack his reflection in my car side-view window every spring. If you’re really lucky, you’ll get a woodpecker drumming out his territorial signal on your metal downspouts at daybreak. It’s incredibly loud.