The best thing I've done in a long time is to just show active apps on macOS Dock and remove the delay when it's hidden and no animation or delay.

defaults write com.apple.dock autohide-delay -float 0 &&
defaults write com.apple.dock autohide-time-modifier -float 0.4 &&
defaults write com.apple.dock static-only -bool true &&
killall Dock