Any way to figure out the titleBarHeight on MacOSX when using native title bars?

The problem is this:

int DocumentWindow::getTitleBarHeight() const
{
    return isUsingNativeTitleBar() ? 0 : jmin (titleBarHeight, getHeight() - 4);
}

It returns 0.