I did root the system flashing Magisk-v20.4.zip using adb sideload
(the /e/ stock recovery comes with this function). But remember : the bootloader must be unlocked before this operation and you won’t be able to lock back the bootloader (it will corrupt the system), so I guess that it’ll be impossible to make OTA updates…
(and don’t forget to wipe data after flashing Magisk)