"ask_dialog()" is not working proberly

I am using ask_dialog() in my code (Myfile.jl) and when I run it, a popup window is appeared. However, after clicking any of the two options nothing is happening (it do nothing). While using the below command in REPL it works well. How can I solve it?

using Gtk
state = ask_dialog("Do like fruits?", "No", "Yes")