Avoid panel to autoHide in Firefox extension

firefox, firefox-addon, panel

Solution

This is the offical sdk method of doing it:

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

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

Problem

I am actually trying to develop a Firefox extension using the high level apis, and specifically trying to avoid a panel to autohide when you pick a file or when you click outside of the panel itself. Does somebody has an idea of how to do this? I know that it is possible using XUL, so why is this not easy using the apis? Thank you in advance for your answers.

Original source