CustomPanel - Can we make it load for just one aircraft

Hi I’m pretty sure the answer is no, but can we create a custom panel that
only loads for a specific aircraft? I am building one to manage our mod and
feedback already is can it only load if the aircraft is being used. I think
one possible approach will be to conditionally run the

 window.customElements.define("bonanza-hangar", BonanzaHangar);