How to Integrate a Custom Plugin in discourse UI

This is a bit vague. Can you be more specific? Exactly what do you want to add to the UI?

Have you looked through existing #plugin source code to see what they are doing? (This is one of the benefits of open source)