not rely on native component
When I think about reimplementing e.g. textarea with all its features (accessibility, right-to-left languages support, selection, navigation, etc) it freaks me out. I hope you know what you are doing as I have little experience with this level of GUI. As far as I understand, you need a canvas / window handler created by a "native framework" to be able to put a "native component" on it.