Show File Upload dialog on hbox click

I am trying to show upload dialog for a new image upload.
I have a HBox and I want to open the dialog on click.
Currently I have this part:

imageBox.addLayoutClickListener(e -> {
    FileUploadDialog dialog = (FileUploadDialog) openWindow("fileUploadDialog", OpenType.DIALOG);
}

But I want to skip the whole dialog with upload button, I want to go directly to the file chooser.
I would like to open directly this dialog:
dialog-open

Is this possible somehow?

Thanks in advance,
Ivan

Hi,
unfortunately, browser security is not allowing to open the system dialogue from the code.
As a workaround, you may use the DropZone mechanism or you can resize the upload button and make it looks like a clickable area.