Hello,
I have an HWND and I want to dock it to the screen like this:
Dock example with Google Desktop Sidebar

Stuff to know:
Maximized windows won't cover the docked window's area.
Desktop icons will move a bit to the right so they won't be covered by the docked window. (If it's docked to the left and icons are aligned to the left)
Desktop icons will move a bit down if the window is docked to the top.
Docked windows can be docked to top, bottom, left and right.
The Taskbar is a window that is docked to the bottom.

I tried searching for codes to do that, but none of them worked or did what I want.
Can someone give me an example code to dock an HWND like that?

Thanking in advance,
LIJI.