This procedure gets a widget class name as parameter, and inserts a new widget of this class into the currently selected widget. Before the widget is actually inserted, a parameter dialog box is popped up, where the user can configure the widget (including the widget name).