Thanks for your replies, only they did not provide new information (as I did check the APIs).
Setting the dialog's size to maximum would not have the same effect as with maximizing a frame. Maybe it's simply to do with decorations? I wonder, why there has been no mixed dialog/frame component or mechanism till today.