@saku00 Sadly, I don't think it is. The only emulator I know of that even supports the DS-i is melonDS, which even then is still a WIP and not available on RetroPie at the moment.
@androidonpi The errors appears because you're running RetroPie from the desktop environment. As @dankcushions mentioned, this is not a supported configuration. On the Pi4, drastic will run by starting an X server first (as a few other ports already do), if you're already running in a desktop environment, that won't work.
drastic is not a libretro core, so the file you added doesn't have any effect on the emulator. I see that drastic has a 'Screen orientation' option, but it doesn't seem to add any rotation - maybe works only on Android (?).
I am not familiar in any way with NDS emulation, sorry. I can work on a Pi on Tuesday to see where you can locate the config files. Do you have a SSH server running on your Pi?
@Linkseo my config file won't work for you unless you're using the exact same controllers as I am. It's also been years since I last played around with settings in Drastic.