You need to do some obedience work with her, and make her realize you, not she, is the queen. Otherwise, she is just doing what she perceives is her job, and you have no control. She and you will be much happier if, in circumstances like this, you can tell her "Enough, now go lie down." And if you are the Alpha/queen, she knows this stranger is your responsibility, and she can rest with you incontrol.

It will take work, lots of repitition, and yes, Yorkies are barky, but you need to retake control. It cannot be much fun for her to have to bark all night, either!