Adds a group (static, non-clickable item) and returns the index of added group.
The group is added after the last element that has been inserted using AddItem() or InsertItem().