Mimic Finder’s quick look touchbar behavior

When opening a quicklook preview panel, two additional buttons appear to be added to the control strip side of the touchbar. In my application this causes my NSTouchBar items to get pushed to the left, but in finder, the finder-specific items fade away and return when the preview is dismissed.


Does anyone know the startegy for duplicating this behavior?