Separated named window into NamedWindow class.