void OnOk()
Virtual function that will be called when the OK button on the physical window is pressed (if it exists).