How to close a window in multi-window mode? How do I close a window in multi-window mode? I know I can show/hide the Windows supporting multi-window by keeping the Back key pressed/held down. Once I drag an app out of the multi-window and then another one how do I close it.

I am also slightly surprised that only few apps use multi-window.

Can someone please point me to the code needed to implement multi-window in am app?

Also, can I dock the multi-window drawer on other sides of the screen, where a user may find then more convenient (at least being able to choose between a left-docking and a right-docking drawer.

Android KitKat 4.4.2.

Thanks.
To answer your first question (since the rest are off topic, and the first one is your title question anyway) apps open in multi window can be shut by:


Tap anywhere in the app you want to shut.
Tap the Bar between the two windows (it may have an arrow pointing at that window you tapped, it may not)
Tap the X on the options that come up


BUT BE WARNED! If you opened an app over an app (for example, you opened YouTube, then gmail on top of it) it would switch to that app. Keep repeating the process to close any unneeded apps.