sDrop image P2D

Hi, I’m trying to drag and drop an outside Image in my PApplet with sDrop library but I use P2D renderer. With this renderer is not working but without is it. There is a way to go around, I really need this ? Thanks

I found an alternative with Java but It’s very difficult to understand.
I have no bugs with this code but nothing happens

import java.awt.dnd.*;
import java.awt.datatransfer.*;
DropTarget dt;
void setup() {
    size(500, 500, P2D);
    dt = new DropTarget(frame, new DropTargetImplementation());
private class DropTargetImplementation extends DropTargetAdapter{
    public DropTargetImplementation()   {
    public void drop(DropTargetDropEvent e){
        println("The DropPanel received the DropEvent");
    public void dragEnter(DropTargetDragEvent e){
    public void dragExit(DropTargetEvent e){
    public void dragOver(DropTargetDragEvent e){