helpPhoneNotConnectingCreateWindow = (isRenderedPage = false) => {
  const config = {
    width: 920,
    height: 800,
    minWidth: 600,
    minHeight: 400,
    show: false,
    resizable: true,
    title: `${APP_TITLE}`,
    minimizable: true,
    fullscreenable: true,
    webPreferences: {
      nodeIntegration: true,
      contextIsolation: false,
      enableRemoteModule: true,
    },
    backgroundColor: getWindowBackgroundColor(),
  };

  // incoming call from a rendered page
  if (isRenderedPage) {
    const allWindows = remote.BrowserWindow.getAllWindows();
    const existingWindow = loadExistingWindow(
      allWindows,
      HELP_PHONE_IS_NOT_CONNECTING
    );

    return {
      windowObj: enableRemoteMainForRenderer({
        existingWindow,
        windowConfig: config,
      }),
      isExisting: !!existingWindow,
    };
  }

  // incoming call from the main process
  const allWindows = BrowserWindow.getAllWindows();
  const existingWindow = loadExistingWindow(
    allWindows,
    HELP_PHONE_IS_NOT_CONNECTING
  );

  const bWindow = new BrowserWindow(config);

  remote.enable(bWindow.webContents);

  return {
    windowObj: existingWindow ?? bWindow,
    isExisting: !!existingWindow,
  };
}
Help - my Phone is not connecting windoe