Application window resolution

Hi, all!

how to know current window resolution to properly place UI elements?
graphics.width and graphics.height always return 1024 x 768 regardless of actual window resolution.