Dialog: Apply `overflow: hidden` to contain the resize handles

Fixes #9521
Closes gh-1092