Avoiding automatic AudioProcessorEditor destruction

Is there a way to avoid the AudioProcessorEditor being deleted in plugins? I would like my editor to be constructed when the AudioProcessor derived class (the plugin itself) gets constructed and I want the editor to be deleted when the AudioProcessor inherited class gets deleted.

Is there a way to do this?

No… But you should be treating the editor object as transient anyway, it could be deleted and re-created any number of times during the plugin’s lifetime - so it may not even exist when the plugin’s destructor gets called.