Handles opening, closing and docking of modals
Example
var modal = new App.Modal({id: 'id',
title: 'Title',
onDock: (modal) => console.log("Modal docked"),
onClose: (modal) => console.log("Modal closed"),
onFullscreen: (modal) => console.log("Modal entered fullscreen")
});