Can't drag-and-drop vertical tabs

Description of the issue: When using vertical tabs, you cannot drag-and-drop tabs into the vertical tab panel unless it is manually expanded first. Attempting to do so causes the dragged tab to flicker between showing its regular content, being an all-white box, and being invisible.

Steps to reproduce:

  1. Enable vertical tabs with the tab panel minimized or set to auto-expand on hover (found under “tabs” in brave://settings/appearance).
  2. Drag a tab out of the vertical tab panel.
  3. Attempt to drag the tab back into the tab panel and merge it with the other tabs.

Expected result: The dragged tab should become a minimized vertical tab in the tab panel, allowing you to move it vertically to select its position among other tabs before dropping it. Refer to Microsoft Edge for expected behaviour.

Brave Version: Version 1.67.123 Chromium: 126.0.6478.126 (Official version) (64 bits).

Additional information: Tested on Windows 10 22H2 (19045.4529).