[Core] Added D&D support. Fixed segfault on startup