How to give entry of withdrew retain earnings
Create a capital account and allocate your drawings to that capital account, see guides - Set up and use capital accounts | Manager
If you are a sole proprietor/trader, this Guide may also be helpful: Simplify equity accounting for sole traders / proprietors | Manager. If you follow this approach, you can simply record a payment and post it to the renamed Retained earnings account.