In game tab adding TabContainer

Godot Version

4.2.1

Question

So I’m trying to make a system in a level editor, where you can go to the add section and press “Room” to make a new room. The rooms are tabs in a TabContainer node. I can’t seem to figure out how to make it work though?:

I need it to make a new tab. How?

Add another child to the TabContainer when New is pressed

I have tried this, but I don’t know how.