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. (cherry picked from commit 15abb00d)