Prevent the hiding of a panel?

Hey, when i open a panel via my addon, and click with the mouse outside of this panel, it will always closed. I want, that the user can only close this panel by a button, and not with a click in the outside. Have someone a idea for a solution?

Thanks

This is the offical sdk method of doing it:

let myPanel = Panel({.....})

let { getActiveView }=require("sdk/view/core");
getActiveView(myPanel).setAttribute("noautohide", true);
myPanel = Panel({.....});
require('sdk/view/core').getActiveView(panel).setAttribute("noautohide", true);

thanks, so it works…

Извините за вопрос:А есть ли приложение которое автоматически скрывает панель навигации и открывает её при подведении курсора?