Add a new tab to the editor

Hello,

Is there a way to add new tabs to the editor using a plugin, and later on extend it with other buttons etc. similar to how modes tab was done in the editor?
I’m trying to figure out how to do it, but after reading [this][1] and [this][2], I’m still not even one step closer to figuring out how/what needs to be done. I did manage to find where it is located in the editor:

http://s24.postimg.org/jramcrpyt/Widget.png

.
However, after opening the TabManager and SDockingTabStack, I didn’t see a way to extend it via plugin.

Thanks!

Hi, I know it’s far too late for you, but I was looking for that myself and, for future reference, the answer is Creating a new tab in a plugin