I did this. Latency sucks but that didn't matter for text editing.
But the drivers sucked and the screen was too small and you want to have a white background text editor just for the eink screen. Switch that to the wrong screen and you're suddenly blinded.
Was fun, but I wouldn't recommend it. Making everything dark mode is easier, or keeping screen brightness super low is the easier option.