GUILayout Window not working inside switch case for conditional menu

For some reason, I cannot get the GUILayout to work inside of a switch-case...

The switch case is activated when the conditional flip is valid, and the GuiLayout popup shows.

Show some code. If you're trying to put OnGUILayout inside of a switch, that won't work. It's not a function you call manually.