mui.DoMethod(id, "Insert", obj, pred)
Before you can call this method, you have to put the group into a special state that allows the addition and subtraction of children. This can be done by running the Group.InitChange and Group.ExitChange methods on the respective group object.
Detached MUI objects can be created either by calling the mui.CreateObject() function or by explicitly detaching them from their parent by using the Group.Remove method.