https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/ and https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/ for why rewriting is ill advised and for an alternative. This can be mitigated to an extent by gradually translating and embedding/interfacing individual pieces of code. (a la https://en.wikipedia.org/wiki/Chimera_(mythology) ).
Should probably have used to word "Transferring" and "Modularizing" instead of "Rewriting". I'm sure the Inkscape devs are brilliant and the code is solid. The medium posts is more targeted at what you can do once the code sits in a different platform, which I also presume will make the entire architecture nimble WRT embedding and collaborating on the web and module reuse / sharing.
Ole