The simulator represents the Touch Bar in a floating window regardless of whether your Mac is equipped with a Touch Bar. Use the simulator to preview, test, and debug the NSTouchBar
objects you define in your app.
Choose Window > Show/Hide Touch Bar to show and hide the simulator.