The best defense against something like this simply not become the target.
Guys who tend to do this are often smart and plan well. Some are even military trained. You have to think as if you were planning to do such a thing. They often plan, train and practice for their robberies.
A ram on my front door and they are inside. Same with the widows etc. Not much different than a police entry team.
In a forced dynamic entry, I wouldn’t have much time to wake up and arm myself before they are already at the bedroom doors. I might be able to get between my kids rooms and the threat but doubtful. I don’t think most people understand how fast such entries are. Police use them on high risk warrants with people who are expecting trouble and overwhelm them without firing a shot in most cases. Including drug houses with no windows and steel barricades doors.
In normal conditions, my home and most homes can only harden so much in the United States.
Go stay in a home in Italy. Most of the homes have Physical security measures that a security expert would dream of with a sense of style my wife would allow. Security shutters on the windows double as window blinds. The doors on the new homes have locking bolts on all sides of the door when engaged.
The security film on the windows and the doors here fail to live up to their standards.
My home security is based around the common threat of a quick burglary crew ( those who aren’t looking for or expecting armed resistance).
And my biggest security asset are my good neighbors who are armed and willing to help ( retired LE like myself). It would be the wrong block to do such a thing. It would be like the townspeople of Coffeyville vs the Dalton gang.
https://www.history.com/this-day-in-history/the-dalton-gang-is-wiped-out-in-coffeyville-kansas
If a stranger is on the block, you should see how many people are looking out their windows to see what is going on.