Programatically add sections and tables

It would be great to be able to add sections or tables into the current doc with a button or something. It has been asked for by some already, but I have been wanting that for a while now.

There are some different thoughts on how to do it, but the following are the different wishes

Is this maybe something that is needed by more codians?