Magento 2 custom admin grid get all categories

I want to create admin grid in custom module to to show category id,name and a custom attribute from catalog_category_entity table, how to do this ? I created a ui component but table is empty. any help would be appreciated.