Same concept as 03fb4b49. Not worth the attempt; most dialogs don't draw edge to edge, and the ones that do most likely don't work well with the top border.
mentioned in commit 55b5a2ff