GtkDropTarget to accept only specific mime type

hello

i have a drag source with content provider like this

GBytes *bytes = g_bytes_new(&u64_id, sizeof(u64_id));
GdkContentProvider *provider = gdk_content_provider_new_for_bytes(MY_MIME_TYPE, bytes);
g_bytes_unref(bytes);

how can i have a drop target that will only accept bytes with this mime type?

thanks

gtk4, c

this can be acheived with GtkDropTargetAsync

char *mime_types[] = { MY_MIME_TYPE };
GdkContentFormats* formats = gdk_content_formats_new((const char **)mime_types, G_N_ELEMENTS(mime_types));
GtkDropTargetAsync *drop_target = gtk_drop_target_async_new(formats, GDK_ACTION_COPY);