This looks possible and would love to see some AutoIt/AutoHotkey type automation functions, but cross-platform, for V. Possible examples of such functions (to clarify what is meant) are below (just definition suggestions):
fn active_window(handle int) bool
fn wait_active_window(title string, timeout int) bool
fn wait_not_active_window(title string, timeout int) bool
fn get_window_title(handle int) (string, int)
fn get_button_text(handle int) string