What does the SetWindowPos function do to the owner window's position
in the Z order, if you do not pass this flag?
Take placing the owned window at the bottom of the Z order for an example. There are three windows: Owned, TestWindowPos (owner) and New Tab Chrome window (as a reference).
Test code piece:
HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr);
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
HWND hWndOwned = CreateWindowW(szWindowClass, L"Owned", WS_OVERLAPPEDWINDOW,
0, 0, 500, 500, hWnd, nullptr, hInstance, nullptr);
ShowWindow(hWndOwned, nCmdShow);
UpdateWindow(hWndOwned);
SetWindowPos(hWndOwned, HWND_BOTTOM, 0,0,0,0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER);
When SWP_NOOWNERZORDER flag is set you can see from the following snapshot that it puts the owned window at bottom but keep the owner unchanged.

When SWP_NOOWNERZORDER flag is not set you can see from the following snapshot that it changes the owned window's z-order together with the owner window's.
