### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

15.0.0

### What operating system are you using?

Windows

### Operating System Version

Windows 10

### What arch are you using?

x64

### Last Known Working Electron version

10.1.5

### Expected Behavior

i want get file path from clipboard.
`const res = clipboard.readBuffer("FileNameW").toString("ucs2");
 console.log(res);`

### Actual Behavior

`const res = clipboard.readBuffer("FileNameW").toString("ucs2");
        console.log(res);`
 Got this error: [26824:0927/105619.004:ERROR:crashpad_client_win.cc(808)] not connected

### Testcase Gist URL

_No response_

### Additional Information

_No response_
shell/common/api/electron_api_clipboard.cc
ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  ui::ClipboardFormatType format(
      ui::ClipboardFormatType::CustomPlatformType(format_string));
  std::string data;
  clipboard->ReadData(format,  nullptr, &data);
  return data;
}
v8::Local<v8::Value> Clipboard::ReadBuffer(const std::string& format_string,
                                           gin_helper::Arguments* args) {
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  std::map<std::string, std::string> custom_format_names;
  custom_format_names =
      clipboard->ExtractCustomPlatformNames(ui::ClipboardBuffer::kCopyPaste,
                                             nullptr);
#if defined(OS_LINUX)
  if (custom_format_names.find(format_string) == custom_format_names.end()) {
    custom_format_names =
        clipboard->ExtractCustomPlatformNames(ui::ClipboardBuffer::kSelection,
                                               nullptr);
  }
#endif
  CHECK(custom_format_names.find(format_string) != custom_format_names.end());
  ui::ClipboardFormatType format(ui::ClipboardFormatType::CustomPlatformType(
      custom_format_names[format_string]));
  std::string data;
  clipboard->ReadData(format,  nullptr, &data);
  return node::Buffer::Copy(args->isolate(), data.data(), data.length())
      .ToLocalChecked();
}
void Clipboard::WriteBuffer(const std::string& format,