Given a local Uri created from resource, content or local file, try to create a Drawable from it.
This method is partially borrowed from ImageView#getDrawableFromUri.
source