Sprite Library Asset Custom Resolver Preview

I have a UI which I plan on using a Sprite Resolver for however it doesnt work with the UI.Image class.

I’ve made a custom class called ‘UISpriteResolver’ which can switch between sprites in a sprite library asset although it can’t preview the asset like the built in Sprite Resolver. I have a custom editor script for the class but I can’t find a way to preview the asset.

Is there any way to make the custom inspector have a preview for the asset the same or similar to that of the existing Sprite Resolver? See Figures for what I mean.

Existing Sprite Resolver Preview (Im not sure why the sprites arent rendered):

My Custom UI Sprite Resolver which in theory would contain the preview:
image