The Title item of the media playlist has special behavior, being able to hide/expand the list of items below it, like a group of items.

Right-click on the 3 dots in the media tab (or an empty area in the list), miscellaneous submenu, to add a title.
You can also right-click on an already created title and select the clone option.

It is possible to define a background color for each title.

Examples: