def METHOD_NAME( menu, name ) :
	scriptWindow, layouts = __scriptWindowAndLayouts( menu )
	layout = layouts.create( name, scriptWindow.scriptNode() )
	scriptWindow.setLayout( layout )
	if not GafferUI.Widget.currentModifiers() & GafferUI.ModifiableEvent.Modifiers.Alt :
		layout.restoreWindowState()