Make sure the ResourcesWindow is not created when not used