How to implement trash folder in file manager

Hi everyone, I know HestiaCP doesn’t have trash functionality in it’s File Manager. Do you have any recommendations on how to circumvent this limitation, maybe an extension that I can install so if I accidentally delete something then I can restore?

I don’t mind trying to implement it and then testing and giving feedback to see if it works well or not and if it does maybe others can use similar solution too.