Restrict document picket not to allow un-published document

Hi Team,
I have a document picker in my component where I can upload a document to this component. How can I restrict this picker not to allow/upload the document if the document is not published ? The picker is showing like below. Please suggest me if there is any way.

Thanks !