diff --git a/src/Avalonia.Controls/WindowBase.cs b/src/Avalonia.Controls/WindowBase.cs
index d42244ba5c..c2523207e4 100644
--- a/src/Avalonia.Controls/WindowBase.cs
+++ b/src/Avalonia.Controls/WindowBase.cs
@@ -160,6 +160,15 @@ namespace Avalonia.Controls
}
}
+ ///
+ /// Trys to get the platform handle for the window.
+ ///
+ ///
+ /// An describing the window handle, or null if the handle
+ /// could not be retrieved.
+ ///
+ public IPlatformHandle? TryGetPlatformHandle() => PlatformImpl?.Handle;
+
///
/// Ensures that the window is initialized.
///