The PProPanel sample is the place to start; it thoroughly exercises the PPro ExtendScript API:
https://github.com/Adobe-CEP/Samples/tree/master/PProPanel
Here’s “How to set up a panel dev system”:
https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/ReadMe.md
Here’s “How to debug panels at both the JavaScript and ExtendScript levels”:
https://www.dropbox.com/s/lwo8jg0klxkq91s/walkthru.mp4
Feel free to ask questions, at my day job address: b b b at adobe dot com