Adding the JUCE titlebar and borders to a Linux native window


I’d like to add to a native Linux window (for example, Firefox) the JUCE titlebar and borders instead of native for KDE, OpenBox etc.
Is it possible?

Maybe, do this way:

  1. Obtain an active window using

void* w = getPeer()->getNativeHandle();

  1. Attach this window to a TopLevelWindow object with

    addToDesktop(ComponentPeer::windowIsResizable | ComponentPeer::windowHasMinimiseButton |
    ComponentPeer::windowHasMaximiseButton | ComponentPeer::windowHasCloseButton,

Any advice?