IMGUI コードを VisualElement に置くには IMGUIContainer を使用します。OnGUI() 内で通常行えることは、すべてサポートされています。
You can arrange multiple IMGUIContainer and lay them out by mixing GUILayout and UI Toolkit layouts. Note that it is not possible to add VisualElement instances inside of an IMGUIContainer.
IMGUIContainer の例