Dialogs can be defined to show the same elements a Detail Page would.
dialog ContactNoteDlg for ContactNoteStruct {
label = "Contact Note";
input(CaseId, TaskId, Owner, ShowCustomer, ShowExternally, FocusId);
output(Message, FocusId, ShowCustomer, ShowExternally);
// elements here
command Ok;
command Cancel;
}