I don't have my macOS device on hand right now, but I'm almost certain that the AltTab app replicates that behavior. Or, at the very least, it throws out the incredibly annoying obsession that macOS has on separating switching between applications and switching between windows of one application.