Expanded ForeignWindow.Minimize and Maximize