Edit ah. no it’s when you click the app icon in the dock. I guess that’s the behavior sought here?
If one is screensharing or presenting to an audience and the only windows in the target app are minimized but contain sensitive information, one most certainly would not want one of those minimized windows to reveal.
As a sibling to your comment points out, the solution is to hold the option key down while releasing the command key. This verifies a user’s intention to reveal the first-minimized window.
When presenting, I keep close track of what information I have minimized and unminimized.
It would severely hamper my work (all of which is disclosed) to quit apps that have minimized windows with information I do not want to show to undisclosed parties.
To be clear, command-tabbing on macOS may not behave the same "Alt-tabbing" on other platforms (I honestly don't know). Specifically, command-tabbing does not give focus to apps that are hidden until they are selected and does not reveal minimized windows without user intervention (holding option down while releasing command.)
Automatically disclosing minimized windows for command-tabbed apps that have no disclosed windows would actually remove a privacy feature rather than enhancing command-tab app switching.
I don't need to do research to answer this question. If a user switches to an app, it's because they want to use that app. And using most apps depends heavily on being able to see them.
If I want to control things without a UI, I'll go to terminal.
What if you have multiple windows of the same application, and you minimize one of them, then auto opening of that window everytime you switch back to the app will be super annoying.