EditorGUILayout fields not showing

I have several EditorGUILayout intFields in a Window inside an EditorWindow but they show as the label and an empty clickable field.

Example (relevant parts) :

public int tileSize;
 
void OnEnable()
{
    tileSize = 100;
}
 
void OnGUI()
{
    BeginWindows();
    GUILayout.Window(2, new Rect(0, 0, position.width, position.height), windowFunc, "Settings");
    EndWindows();
}
 
void windowFunc(int windowID)
{
    tileSize = EditorGUILayout.IntField("Tiled Texture Size :", tileSize, GUILayout.Width(160));
}

How can I show the actual int inside the clickable field?

Thanks.

Just solved my problem! I had to put EditorGUIUtility.LookLikeControls(); above my EditorGUILayout calls.

Nice,Congratulation!