It has been reported that when using a Ribbon hosted in a RibbonWindow in an application targeting .Net 4.0, the SystemMenu does not show in the correct location. See screenshot below.
Please note that this bug does not exist when targetting .Net 3.5. The workaround to this problem is in the attached sample. The essence of the workaround is to override the execution of ShowSystemMenuCommand.