@contextmanager
    def drop_frame(self, frame):
        if isinstance(frame, QDockWindow):
            win_area = frame.dockArea()
            maxed = win_area.maximizedWidget()
            if maxed is not None:
                container = self.containers.get(maxed.objectName())
                if container is not None:
                    container.showNormal()
        yield
        if isinstance(frame, QDockWindow) and frame.dockArea() is None:
            frame.close()
        elif not frame.isWindow():  # QDockContainer was docked.
            self.post_docked_event(frame)
Setup a drop context for a QDockFrame.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/layout_builder.py/LayoutBuilder.drop_frame