Plugin window always on top

I’m currently working on a plugin that communicates with another application using “SendMessage()”. Im using “BringWindowToTop()” to make sure the apps window is in front, but my problem is that my plugin and host always pop up in front of that window. Is there a way to disable this behavior in JUCE or is it something the host is doing?

Does anyone have a solution for how to ensure that an application being called from a plugin will always be on top of the DAW/plugin window? My plugin calls an exe which shows a dialog. That dialog only appears on top of everything if the exe is being opened for the first time. Is there a way to ensure that the dialog is always on top even when it is just being sent a message and not being opened for the first time? Any help or suggestion would be greatly appreciated!