Move createUiContainer to BasePlugin so it can also be used by "toolbar" plugins