Bringing my application window to the front

How can I set it so that, in certain situations, if my Juce application is currently not the top window being displayed on the desktop it can be brought to the front? Is there anything within Juce that can handle this?

Under many circumstances the OS deliberately won’t let you do that, to avoid annoying the users with unwanted windows.

So there’s no way I can do this at all?
With the app I’m currently building I’m sending MIDI program change messages to an app called OnStage which automatically closes and opens Logic Pro projects. But opening a Logic project brings it to the front of the desktop where preferably I want my app to be.