Isn't Notion itself also a "walled garden"? It seems appropriate that Microsoft has a copy/competitor to Notion.
There's even a semiofficial API that works pretty well - you can read Notion notes in VSCode, for example.
Notion has an official API. https://developers.notion.com/