How can i get template variables in backend plugin

how can i get template variables in backend plugin
can you give me a example, please

does someone have any insights on this?

@yincongcyincong You might check this article, or I am just linking it here for other devs who might need this answer in future.
Template variables in backend