GetThreadDesktop

[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr GetThreadDesktop(
   uint dwThreadId
);

Microsoft documentation: Link

Last updated