Native widgets come with a bunch of accessibility and localization features that are typically missing from naive custom widgets.
A native English speaker with normal vision might naively assume that they could reimplement a widget that's just as good as the native one in less than a week, but the result will be awful for anyone who doesn't match that description.
If you're building with web tech accessibility and localization are easier to add to a custom widget (though they do still require thought), but this is Godot, not Electron.
In theory, in practice the myriad of devices and software is rarely tested or works properly beyond official mac and windows interfaces, and maybe gtk and qt if you're very lucky.