What position do they take when the bad guy is outside your home aiming a gun at you through the window?
I have not read of such a case, but it would be interesting. If you know of one, please give us the link.
However, my gut feeling is that in my state the LEO’s would take the position that you should get away from the window and call 911.
That does not represent my opinion so knock off the flames.