How to put a plugin window to front/back?

Hello,
in a DAW i have several instances of a plugin (one for each track).
Each plugin has a window editor, but I would like show only one window at a time, and that the user can switch from one window to the other from a list.
For this i tried the JUCE commands:

  editor->getPeer()->setMinimised(true); 
// or:
  editor->getPeer()->toFront(true); 

It works well with the StandAlone, but not in a DAW (Ardour in my case).
Is there a solution please?