Inkscape crashes when trying to move a dialog tab
<!--
See our full bug reporting guidelines at https://inkscape.org/contribute/report-bugs/
Writing a good bug report will ensure we'll be able to help efficiently. 🙂
-->
#### Summary:
When trying to move palette / outline and fill, or other right-hand side dialogue boxes, Inkscape crashes.
#### Steps to reproduce:
- open Inkscape (works even in a blank document)
- try to click on one of those headers:

- and to move them towards the bottom of the rectangular space into which they are enclosed:

**Note:** this issue is quite hard to reproduce, and it doesn't crash every time. I had to fiddle a little, possibly adding / removing Alignement / Infill and Outline / Export palettes and trying to drag them down to reproduce the issue. It crashes ultimately but not necessarily at first try.
#### What happened?
Inkscape crashes.
#### What should have happened?
It shouldn't.
#### Version info
<!--
Open 'Help > About' and click on the little bug icon in the bottom right corner that copies the debug information to your clipboard. For command line users, run 'inkscape --debug-info'.
For Inkscape 1.0.2 and older, please manually add the Inkscape Version and Operating System Version. The Inkscape version is listed in the About dialog. For command line users, run 'inkscape -V'
Paste the information in the empty space between the apostrophes below:
-->
```
Inkscape 1.2 (1c30c29, 2022-06-27)
GLib version: 2.70.5
GTK version: 3.24.33
glibmm version: 2.60.0
gtkmm version: 3.24.5
libxml2 version: 2.9.12
libxslt version: 1.1.34
Cairo version: 1.17.6
Pango version: 1.50.6
HarfBuzz version: 2.9.1
OS version: macOS
```
MacOS 13.2.
<!--
❤️ Thank you for filling in a new bug report, we appreciate the help! ❤️
Please be patient while we try to find the time to look into your issue.
Remember that Inkscape is developed by volunteers in their spare time, we'll try our best to respond to all reports.
-->
<!--
Please be careful when/after writing # for example in logs, code, or versions of linux
- use inline code span - single backticks (`) before and after it, like this - `#1618`
- use multi-line code block - triple backticks (```) to fence/enclose console logs
- attach long logs as a text file.
-->
issue