How to give focus to custom dock (plugin)?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By PugMasterPug

I am making a custom dock in order to make conversations easier to make, I basically can create some text boxes and edit them so the NPC says what is in them, in a specific order.
The problem is, I made the writing system for those boxes manually, and now I have the problem that when I write something in there it affects the rest of the editor (for example, if I have a script opened, and I start to write a conversation, that same conversation will get written in the script), so to fix this, I need some way to give focus to the custom dock, just as it is with every dock in the editor. How can I do it?

Thanks in advance.