Any way to disable focus loss handling on a menu anchor?

By default, when a menu anchor loses focus (i.e. the player clicks outside of the menu), it forces the menu to close. Is there an option to disable that functionality and make it so that I have full control of when the menu opens and closes?