This functionality is provided in libusb via `libusb_wrap_sys_device`. It probably should be a method on the context object. This is required to use libgusb with the XDG USB Desktop Portal.