Compute explicitely the geometry of the toplevel widget.
Attach a file by drag & drop or click to upload