OSX - Only show apps with open windows in the dock?
Hide the Dock, then use Contexts for Mac to switch between active windows. Contexts has an option to show only the application with active windows regardless it’s running in background or not. You can read my review here.