I found some statistics, 60% of burglaries occur when the home is occupied, 38% of the time the BG is armed with a firearm, and only 60% of the burglaries occur during the day.
I wouldn't count on an intruder not being willing to harm you, they have made the decision to enter your house and have accepted the fact there may be people there, considered that you may be armed and that means they have a plan what to do if discovered, it may be running away but then again it may not be. Also their intent may not be to rob you, and they may be seeking you out.
I wouldn't use a closet because it only has one entrance / exit and probably more than one method of approach for the BG, if you are discovered you are stuck with no retreat. I'm not going looking for an intruder, I'll deal with them I encounter them between our bedroom and upstairs, otherwise I'll let them come to me.
We have kids so staying put isn't an option, we both have bedside handguns in gunvaults, and I have a SG 4 feet away, our primary plan is for me to grab the SG, she grabs her handgun and phone and we go up the stairs.
I keep an eye from the stairs, the angle of the stairs puts any shots I fire that don't hit the BG into the floor or into the ground outside the house, behind the house is a 6 foot high 8 inch thick concrete wall.
There is only one way to get up the stairs from inside the house, there is restricted movement while going up the stairs, so it gives a nice little shooting lane with good backstops, I can safely shoot through the only wall offering them concealment and if necessary we can go out a window.