There are some simple life prolonging rules when it comes to being armed and defending yourself.
Nothing outside your door is ever worth a life. Not your car, tools, things in your garage.
Going to your door, gun in hand, violates that basic principle.
People do it all the time for a noise by their car etc. You are looking for trouble at that point.
Going outside is not a defensive action.
Back to the OP:
I am sure as hell not answering my door at an odd hour of the night. We can shout through that door and establish that they are LEO's and go from there.
If you are in your home you are in a defensive position.
Answering your door with a gun and brandishing it exposes you to possible criminal charges and/or getting your ass shot, but most importantly if it is a fishing expedition by some crook, now they know for certain you have a gun to steal.
Nobody needs to know you have a gun.