For example, applications like Files or Document Viewer in Ubuntu:
If I want to focus a window like Sublime Text, then wmctrl -a "Sublime" is straightforward, but for Files, the title can be "Desktop" or "Documents" or whatever folder I'm in.
Basically, I'm trying to adapt the directions here: Custom hotkey/shortcut to open/bring to front an app so that they work when there isn't a constant unique string in the title.