RTAS Window foreground issue

Hi all,

In Protools on Mac, I noticed that when my Juce plug-in is behind some other plugin window, my plug-in does not come to the foreground when I click the top bar of the window. Non-Juce RTAS plugins do not exhibit this behavior. Has anyone else noticed this? Is there anything I can do to ensure the window comes to the front when the top bar is clicked, is is this a bug in the wrapper?