How to create a dockable window.

Hi,

Does someone know how to create a dockable window. I' ve looked to the
examples that came with D4, but i don't get it. Is there somebody that has a
good example or something where dockable windows are explained.

TIA

Daniel Dijkhuizen.