function displayDialog(options) {
  return ipcRenderer.sendSync('display-dialog', options);
}
Displays a dialog box

@param {Electron.MessageBoxSyncOptions} options
Options for creating a dialog box

@returns {number}
Index of the button clicked