The addon-builder documentation says this for the panel API, but doesn't go into details:
show(anchor)
Displays the panel. [ anchor : handle ]
A handle to a DOM node in a page to which the panel should appear to be anchored. If not given, the panel is centered inside the most recent browser window. Note that it is not currently possible to anchor panels in this way using only the high level APIs.
How can I get such an handle to have the panel appear right next to the DOM element I clicked?