Modal panel API

Closes #4046
These are temporary.