Good, you have to unlock the bootloader, install TWRP and finally put the xiaomi in recovery or sideload mode and then connect the xiaomi with the usb cable, in the device manager you will get the adb driver and do the process with the tool or dongle hydra tool. As always, I recommend making a backup, in case of any disaster, error, etc.