Many of these problems were already considered and solved by Xah Lee. Watch some of his videos on window management. You will see that tiling or docking windows are always suboptimal. You only need a good set of shortcuts to switching between windows so that you use the mouse less. I also have shortcuts bound to resizing windows to fixed sizes. This is all I am going to tell you. Figure out the rest.