Can I please ask you to make this a virtual method:
DocumentWindow:: ... int getBorderSize() const
The reason is that for my browser plug-ins, I need to be able to display without a Juce-supplied border (which otherwise appears as a side-effect of my using a built-in Juce menu within the plug-in!). The only way for me to make it look right is to override the above method by making it virtual (and in which case, my override simply returns a value of 0). I’ve hacked my local copy of Juce to achieve this (a real 1-liner!), and it’d be neat if you could change that in your base Juce code.