The code to attempt to get an automation peer for the current window calls FrameworkElementAutomationPeer::FromElement on an element, but it always returns null.
We should work out how to successfully get a peer from XAML.
(This code will be checked in with #5849)