Function createPreferencesWidgetContainer