Parent window

Added `parent` feature to cocoa and X11. Its need to be tested and I
actually dont know how to do it with X11.