Add IDs to sample apps that create windows