Gets the position of group in this as index.
group
See set_group_position.
a ToolPalette
a ToolItemGroup
the index of group or -1 if group is not a child of this