[NUI] add NativeWindowSafeHandle & make GetParent() public