This article contains some of the issues that I face during implement dialogs in office js adding development project and solutions for that.
1. Open dialog in office js
To open dialog in office js you need to use Office.context.ui.displayDialogAsync function. you need to parse the dialog url width and height in percentage to this.
2. Parse data from dialog to current host.