function newModal(context, viewSize, modalParams) {

  const modal = COSAlertWindow.new();

  const view = NSView.alloc().initWithFrame(NSMakeRect(0, 0, viewSize.width, viewSize.height));
  modal.addAccessoryView(view);
  modal.setMessageText(modalParams.messageText);
  modal.setInformativeText(modalParams.informativeText);
  modal.addButtonWithTitle('Continue');
  modal.addButtonWithTitle('Cancel');
  modal.layout()

  return {modal, view, viewSize}
}
@name newModal
@description instantiate modal
@param context
@param viewSize {Object}
@param modalParams
@returns {{modal: *, view: *, viewSize: *}}