Fix BWindow::DecoratorFrame for top-titled windows.

Also take into account the border width for the edge with the title.
Fixes #8614.