Any way to get the root EditorPlugin from a dock?

Godot Version

4.7

Question

I’m creating a dock for a custom plugin. I was wondering if there’s a way to get the root EditorPlugin node from the dock? Or do I need to pass it in when I create my dock window?

EditorInterface.get_base_control() looks promising, but it seems to be returning the root of the Godot editor itself.

Inject the reference from the plugin when creating/adding the dock.