GUI.Window in windowFunc

I tried searching for this so if there’s a post about this already please just address me there.
To my question,
Is it expected to get an exception (and nothing drawn) if I have something like this?

void OnGUI()
{
 GUI.Window(..., DoMyWindowFunc, ...);
}

void DoMyWindowFunc(int WindowID)
{
 GUILayout.Label("Oh la la");
 GUI.Window(..., DoMyOtherWindowFunc, ...);
}

void DoMyOtherWindowFunc(int WindowID)
{
 GUILayout.Label("I'm a sad window");
}

windows can’t have child windows I think