pub fn run_app(state: Arc<AppState>) -> Result<(), Box<dyn Error>>
Run the desktop application
Creates a window, embeds the React UI via WebView, and handles IPC communication.