OSX custom keyabard field

Is there way to show native text field?

I have tried to add textField to NSWindow, but it is not visible.

NSTextField *textField = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 0, 200, 100)];
[textField setStringValue:@"VALUE"];

NSApplication * shAp = [NSApplication sharedApplication];
NSWindow *window = [shAp windows][1];

if (window != NULL)
    NSLog(@"window found, add subview");
    [[window contentView] addSubview:textField];

My solution for this is using child window.

I create Child Window and then add TextField as subview.
All works fine, but I should resize child window when parent window is resizing.

 NSTextField *textField = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 0, 100, 50)];
 NSApplication * shAp = [NSApplication sharedApplication];
 NSWindow *window = [shAp windows][1];

 NSWindow *overlayWindow = [[NSWindow alloc]initWithContentRect:newRect

 [window addChildWindow:overlayWindow ordered:NSWindowAbove];
 [[overlayWindow contentView] addSubview:textView];