[WPF] Implement DesktopBackend

Also fixed sample.