Add IDs to sample apps that create windows

One of our best practices is to use IDs when creating main app windows, this PR adds IDs to sample apps that create windows.