Data-driven Green's function retrieval and application to imaging with multidimensional deconvolution