When creating Editor extensions with UI Toolkit (custom property drawers, windows, etc.), the viewport is completely useless because it does not reflect the real outcome.
Example in my extension:
Example using the Create > UI Toolkit > Editor Window
menu.
The viewport apparently does not take into account any editor style, so the layout and proportions are mostly incorrect. This makes editor tooling quite annoying to build.