code: function createWindow() {
          // Create the browser window.
  
          // Get full path of the file getting opened
          const target = splitArgs(argv);
          if (target === '' && opts.defaultPath) {
              // Invalid, empty target, let's just create a window from default
              wm.createWindow(opts.defaultPath);
              return;
          }
          const targetPath = pathlib.resolve(process.cwd(), target);
  
          if (opts.changeDirectory === true) {
              // If we need to change into the relevant directory, do it now
              const dir = pathlib.dirname(targetPath);
              if (fs.existsSync(dir)) {
                  process.chdir(dir);
              }
          } else if (String.isString(opts.changeDirectory)) {
              process.chdir(opts.changeDirectory);
          }
          wm.createWindow(targetPath);
      }
docs: /*
  Creates the first browser window.