Is there a way to draw a Default Inspector for a class in an Editor Window ?

I have a class used in an EditorWindow class that I would like to draw in the corresponding editor, like in this example :

using UnityEngine;
using UnityEditor;

public class MyWindow : EditorWindow
    public MyClassType myClass;

    [MenuItem("Window/My Window")]
    static void Init()
        MyWindow window = (MyWindow)EditorWindow.GetWindow(typeof(MyWindow));

    void OnGUI()
    //draw myClass default inspector


I can draw each of the variables contained in the class one by one, but it’s a time-consuming process and the code would have to be modified if the class were to be changed, so I was wondering if there was an way to draw some kind of default inspector in the editor window.

Maybe if there was any way to somehow turn it into a scriptable object?