A few months ago I set the Desktop Picture on my MacBook Pro to pull from my Favourites in Photos and then to change the picture randomly every 5 minutes.

Screenshot of Settings.

That created the problem of wanting to see the picture hidden behind my active window. Keyboard Maestro took care of that.

A macro brings an app to the front, hides everything else then closes the window for the app at the front.
Desktop picture on  MacBook Pro shows a snow leopard.