You have to remember if there is a window open in any of the desktops, because the dock does not even provide info on this.
It just tells you that it has a program in memory, like it can help my workflow.
Dock in macos is a useless process manager, not a taskbar.