How to choose between a sidebar, a pop-up window or a toolbar to edit the properties?

MacOS applications use the following templates to modify the properties of selected elements (and possibly others):

popovers (See here)

Popover in the calendar

Side bars

Framed in Keynote

Toolbars

Toolbar in the Affinity Designer

What criteria should be used to choose between these models?