Hey Charles,
You can find out what windows have been minimized using AppleScript UI-Scripting.
This script will simply unminimize all minimized windows, but you can adapt the techniques to discover which app has minimized windows and what the window names are.
See the Execute an AppleScript action.
From there you can use a Prompt With List action to chose which windows to unminimize.
Your task is not a simple one, but it's doable.
-Chris
--------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2021/07/24 22:36
# dMod: 2021/07/24 22:36
# Appl: System Events
# Task: Unminimize All Minimized Windows.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @System_Events, @Unminimize, @Minimized, @Windows
--------------------------------------------------------
tell application "System Events"
tell (application processes whose background only is false)
set minimizedWindowList to windows where the value of its attribute "AXMinimized" is true
end tell
repeat with theList in minimizedWindowList
repeat with theWindow in theList
tell theWindow to perform action "AXRaise"
end repeat
end repeat
end tell
--------------------------------------------------------