ShowFormInDialog

When I use the function application.ShowFormInDialog in 6.0.3
I received the following warning : The method showFormInDialog() from the type JSApplication is
deprecated :?:

Which function is replacing that one ?

see the application.createWindow() function