Calling the native GH "select layer" popup window from bake methods

Hi, I’m looking for a way to reuse the “select layer” popup that comes whenever we call the “bake…” button in grasshopper.

Is there any methods to reuse that prompt for a layer?